<?php
    $id=$_GET["id"];
?>

<html>
<head>
 <title>Untitled</title>
 <script src="js/jquery.js"></script>
 <script>
    
    $(document).ready(function(){
        $.ajax({ url: "ajax/getEvent.php?id=<?php echo $id; ?>", context: document.body, success: function(data){
                $("#eventDetails").html(data);
              }});  
    });    
 </script>
</head>
<body>
<center>
<br/>
<br/>
The event was added successfully<br/>

<a href="<?php echo $_GET["page"] ."?year=" . $_GET["year"] . "&month=" . $_GET["month"] ?>">Return to calendar</a><br/>
<a href="<?php echo $_GET["page"] ?>?action=event_form&month=<?php echo $_GET["month"]; ?>&year=<?php echo $_GET["year"] ?>&day=<?php echo $_GET["day"] ?>">Create another booking</a><br/>
<a href="<?php echo $_GET["page"] ?>?action=logout">logout</a><br/>
<br/>
<br/>
<div id='eventDetails' style='border:1px solid black; text-align:left; width:50%; padding:15px'>
    
</div>    
</center>


</body>
</html>



